#ifndef SESSIONTABLE_H
#define SESSIONTABLE_H

#include <QObject>

namespace Sqlite{

class SessionInfo{

public:
     SessionInfo()

         :useId(0)
        ,sessionKey(""){}

    int useId;
    QString sessionKey;
};

class SessionTable : public QObject
{
    Q_OBJECT
public:
    explicit SessionTable(QObject *parent = 0);

    static void createTable();
    static SessionInfo getSessionInfo() ;
    static void updateSession(const int userId,const QString& sessionValue);
    static void clearTable();

signals:

public slots:

};

}

#endif // SESSIONTABLE_H
